package com.eyedog.video.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.eyedog.video.db2.entities.BaseEntity;

public class CustomerEntity extends BaseEntity implements Parcelable {

    public String name;

    public String content;

    protected CustomerEntity(Parcel in) {
        name = in.readString();
        content = in.readString();
    }

    public static final Creator<CustomerEntity> CREATOR = new Creator<CustomerEntity>() {
        @Override
        public CustomerEntity createFromParcel(Parcel in) {
            return new CustomerEntity(in);
        }

        @Override
        public CustomerEntity[] newArray(int size) {
            return new CustomerEntity[size];
        }
    };

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(name);
        parcel.writeString(content);
    }
}
